import { RouteRecordRaw } from 'vue-router';


/**
 * 定义静态路由
 */
export const dynamicRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'login',
        component: () => import('@/views/login/index.vue'),
        hidden: true
    },
    {
        path: '/',
        name: '/',
        component: () => import('@/layout/index.vue'),
        redirect: '/home',
        children: [
            {
                path: '/home',
                name: 'home',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    auth: ['admin', 'test'],
                    icon: 'el-icon-location'
                }
            },
            {
                path: '/monitorOverview',
                name: 'monitorOverview',
                component: () => import('@/layout/index.vue'),
                meta: {
                    title: '监控概况',
                    auth: ['admin', 'test'],
                    icon: 'el-icon-menu'
                },
                children: [
                    {
                        path: '/monitorOverview/rcuMonitor',
                        name: 'rcuMonitor',
                        component: () => import('@/views/monitorOverview/rcuMonitor.vue'),
                        meta: {
                            title: 'RCU监控',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/monitorOverview/propertyMonitor',
                        name: 'propertyMonitor',
                        component: () => import('@/views/monitorOverview/propertyMonitor.vue'),
                        meta: {
                            title: '性能监控',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/monitorOverview/gwMonitor',
                        name: 'gwMonitor',
                        component: () => import('@/views/monitorOverview/gwMonitor.vue'),
                        meta: {
                            title: 'GW监控',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/monitorOverview/cloudServiceMonitor',
                        name: 'cloudServiceMonitor',
                        component: () => import('@/views/monitorOverview/cloudServiceMonitor.vue'),
                        meta: {
                            title: '云服务监控',
                            auth: ['admin', 'test']
                        }
                    }
                ]
            },
            {
                path: '/monitorTask',
                name: 'monitorTask',
                component: () => import('@/layout/index.vue'),
                meta: {
                    title: '监控概况',
                    auth: ['admin', 'test'],
                    icon: 'el-icon-menu'
                },
                children: [
                    {
                        path: '/monitorTask/taskList',
                        name: 'taskList',
                        component: () => import('@/views/monitorTask/taskList.vue'),
                        meta: {
                            title: '任务列表',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/monitorTask/strategyDeploy',
                        name: 'strategyDeploy',
                        component: () => import('@/views/monitorTask/strategyDeploy.vue'),
                        meta: {
                            title: '策略配置',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/monitorTask/monitorGroup',
                        name: 'monitorGroup',
                        component: () => import('@/views/monitorTask/monitorGroup.vue'),
                        meta: {
                            title: '监测组管理',
                            auth: ['admin', 'test']
                        }
                    }
                ]
            },
            {
                path: '/businessAlert',
                name: 'businessAlert',
                component: () => import('@/layout/index.vue'),
                meta: {
                    title: '业务告警',
                    auth: ['admin', 'test'],
                    icon: 'el-icon-menu'
                },
                children: [
                    {
                        path: '/businessAlert/customizeAlert',
                        name: 'customizeAlert',
                        component: () => import('@/views/businessAlert/customizeAlert.vue'),
                        meta: {
                            title: '自定义告警',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/businessAlert/alertNotify',
                        name: 'alertNotify',
                        component: () => import('@/views/businessAlert/alertNotify.vue'),
                        meta: {
                            title: '告警通知设置',
                            auth: ['admin', 'test']
                        }
                    }
                ]
            },
            {
                path: '/terminalManage',
                name: 'terminalManage',
                component: () => import('@/layout/index.vue'),
                meta: {
                    title: '终端管理',
                    auth: ['admin', 'test'],
                    icon: 'el-icon-menu'
                },
                children: [
                    {
                        path: '/terminalManage/sdkUpgrade',
                        name: 'sdkUpgrade',
                        component: () => import('@/views/terminalManage/sdkUpgrade.vue'),
                        meta: {
                            title: 'SDK升级',
                            auth: ['admin', 'test']
                        }
                    },
                    {
                        path: '/terminalManage/equipmentManage',
                        name: 'equipmentManage',
                        component: () => import('@/views/terminalManage/equipmentManage.vue'),
                        meta: {
                            title: '设备管理',
                            auth: ['admin', 'test']
                        }
                    }
                ]
            }
        ]
    }
];



















// {
//     path: '/test1',
//     name: 'test',
//     component: () => import('@/layout/index.vue'),
//     meta: {
//         title: 'test',
//         auth: ['admin', 'test'],
//         icon: 'el-icon-menu'
//     },
//     children: [
//         {
//             path: '/test1/a',
//             name: 'a',
//             component: () => import('@/views/test1/a.vue'),
//             meta: {
//                 title: 'a',
//                 auth: ['admin', 'test']
//             }
//         },
//         {
//             path: '/test1/b',
//             name: 'b',
//             component: () => import('@/views/test1/b.vue'),
//             meta: {
//                 title: 'b',
//                 auth: ['admin', 'test']
//             }
//         }
//     ]
// },

//系统管理
// {
//     path: '/systemManage',
//     name: 'systemManage',
//     component: () => import('@/layout/index.vue'),
//     meta: {
//         title: '系统管理',
//         isLink: '',
//         isHide: false,
//         isKeepAlive: true,
//         isAffix: true,
//         isIframe: false,
//         auth: ['admin', 'test'],
//         icon: 'el-icon-menu'
//     },
//     children: [
//         {
//             path: '/systemManage/accountManage',
//             name: 'accountManage',
//             component: () => import('@/views/systemManage/accountManage.vue'),
//             meta: {
//                 title: '账号管理',
//                 isLink: '',
//                 isHide: false,
//                 isKeepAlive: true,
//                 isAffix: false,
//                 isIframe: false,
//                 auth: ['admin', 'test']
//             }
//         },
//         {
//             path: '/systemManage/roleManage',
//             name: 'roleManage',
//             component: () => import('@/views/systemManage/roleManage.vue'),
//             meta: {
//                 title: '角色管理',
//                 isLink: '',
//                 isHide: false,
//                 isKeepAlive: true,
//                 isAffix: false,
//                 isIframe: false,
//                 auth: ['admin', 'test']
//             }
//         },
//         {
//             path: '/systemManage/menuManage',
//             name: 'menuManage',
//             component: () => import('@/views/systemManage/menuManage.vue'),
//             meta: {
//                 title: '菜单管理',
//                 isLink: '',
//                 isHide: false,
//                 isKeepAlive: true,
//                 isAffix: false,
//                 isIframe: false,
//                 auth: ['admin', 'test']
//             }
//         }
//     ]
// }




// /**
//  * 定动态态路由
//  */
// export const staticRoutes: Array<RouteRecordRaw> = [
//     {
//         path: '/login',
//         name: 'login',
//         component: () => import('@/views/login/index.vue'),
//         meta: {
//             title: '登录',
//         },
//     },
//     {
//         path: '/404',
//         name: 'notFound',
//         component: () => import('@/views/error/404.vue'),
//         meta: {
//             title: 'message.staticRoutes.notFound',
//         },
//     },
// ];
